/**
 * @projectName study-note
 * @package Cammand
 * @className Cammand.Invoke
 */
package Cammand;

/**
 * Invoke
 * @description 要求该命令执行这个请求
 * @author answer_wx
 * @date 2022/7/5 12:05
 * @version 1.0
 */
public class Invoke {
    private Cammand cammand;

    public void setCammand(Cammand cammand) {
        this.cammand = cammand;
    }

    public void executeCammand() {
        cammand.execute();
    }

    public void submitCammand() {
        System.out.println(cammand.submit());
    }
}